package juc.day01;

import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ConcurrentHashMap;

public class T05 {
    public static void main(String[] args) {
        Map<String,String> map = new ConcurrentHashMap<>();
                //new HashMap();
        for(int i=0;i<20;i++){
            new Thread(()->{
                map.put(UUID.randomUUID().toString(),Thread.currentThread().getName());
                System.out.println(map);
            }).start();
        }
    }
}
